Skip to content

feat: Slash lists, store expiration, veto checks#16667

Merged
spalladino merged 1 commit intonextfrom
palla/slash-improvements-2
Aug 29, 2025
Merged

feat: Slash lists, store expiration, veto checks#16667
spalladino merged 1 commit intonextfrom
palla/slash-improvements-2

Conversation

@spalladino
Copy link
Copy Markdown
Contributor

@spalladino spalladino commented Aug 29, 2025

Adds some missing features to slashing:

  • Adds support for the slashValidatorNever and slashValidatorAlways config settings (now EthAddress lists) so that validators in those lists are never/always slashed. All validators in the local keystore are automatically added to the "never" list, unless a slashSelfAllowed is set.

  • Checks if a slash payload is vetoed before trying to execute it, to avoid running an unnecessary simulation. This is handled on the slasher client directly.

  • Adds expiration for offenses and payloads to avoid cluttering the local stores. Removes unused slashPayloadTtl setting.

  • Avoids posting committee addresses during executeRound for committees that are not slashed, in order to save calldata gas.

  • Moves slasher factory methods around to avoid circular dependency.

Previously posted as #16643 but was accidentally merged against the wrong branch

Adds some missing features to slashing:

- Adds support for the slashValidatorNever and slashValidatorAlways
  config settings (now EthAddress lists) so that validators in those
lists are never/always slashed. All validators in the local keystore are
automatically added to the "never" list.

- Checks if a slash payload is vetoed before trying to execute it, to
  avoid running an unnecessary simulation. This is handled on the
slasher client directly.

- Adds expiration for offenses and payloads to avoid cluttering the
  local stores. Removes unused slashPayloadTtl setting.

- Avoids posting committee addresses during executeRound for committees
  that are not slashed, in order to save calldata gas.
Base automatically changed from palla/slash-settings to next August 29, 2025 18:04
@spalladino spalladino added this pull request to the merge queue Aug 29, 2025
Merged via the queue into next with commit a2e7a4d Aug 29, 2025
17 checks passed
@spalladino spalladino deleted the palla/slash-improvements-2 branch August 29, 2025 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants